package com.better.frontend.controller.steplinestudent;

import com.better.common.base.ServiceResponse;
import com.better.common.utils.ServiceResponseHandle;
import com.better.frontend.Iservice.scoresegment.SegmentMangerService;
import com.better.frontend.model.scoresegment.ScoreSementParm;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 踩线生管理
 * Created by Administrator on 2017/11/16.
 */
@Api(value = "踩线生管理", tags = "踩线生管理接口")
@RestController
@RequestMapping("/api/stepLine")
public class StepLineStudentManagerController {
    @Resource
    private SegmentMangerService segmentMangerService;
    @ApiOperation(value = "踩线生管理管理", notes = "踩线生管理管理")
    @RequestMapping(value = "/steplinestudent", method = RequestMethod.POST)
    public ServiceResponse<?> steplinestudent(@RequestBody ScoreSementParm scoreSementParm) {
        return ServiceResponseHandle.success(this.segmentMangerService.getScoreFootFault(scoreSementParm));
    }
}
